%!TEX TS-program = xelatex
% XeLateX
\documentclass[xelatex, adobefonts,
%bigtitle
]{BUAApaper}

\usepackage{latexsym}
%\usepackage{amsmath}

% XeLateX
\usepackage{fontspec}%No options for fontspec
\usepackage{xunicode}% provides unicode character macros
\usepackage{xltxtra} % provides some fixes/extras
\defaultfontfeatures{Mapping=tex-text}

% custom settings
\setmonofont{DejaVu Sans Mono}
\usepackage[xetex]{xcolor}
\definecolor{darkgreen}{rgb}{0, 0.4, 0}
\usepackage{listings}
\lstset{
basicstyle=\footnotesize\ttfamily,        % the size of the fonts that are used for the code
numbers=left,                    % where to put the line-numbers
numberstyle=\footnotesize,       % the size of the fonts that are used for the line-numbers
stepnumber=1,                    % the step between two line-numbers. If it's 1 each line will be numbered
numbersep=5pt,                   % how far the line-numbers are from the code
showspaces=false,                % show spaces adding particular underscores
showstringspaces=false,          % underline spaces within strings
showtabs=false,                  % show tabs within strings adding particular underscores
frame=single,	                % adds a frame around the code
tabsize=4,		                % sets default tabsize to 2 spaces
captionpos=b,                    % sets the caption-position to bottom
breaklines=true,                 % sets automatic line breaking
breakatwhitespace=false,         % sets if automatic breaks should only happen at whitespace
title=\lstname,                  % show the filename of files included with
commentstyle=\color{darkgreen},
keywordstyle=\color{blue}\bfseries\emph
}
\renewcommand\lstlistingname{\rm 代码}
\usepackage{subfigure}

\begin{document}
\author{张三}
\eauthor{Zhang San}
\title{北航毕设论文 \LaTeX{} 模板}
\etitle{\LaTeX{} template of BUAA graduate paper}
\date{2010年6月}
\advisor{李四 {~}{~} 王五}{{Li Si} ~~ {Wang Wu}}
\schoolname{自学学院}
\specialty{\LaTeX{} 模板制作}
%\unitcode{由教务处统一填写}
\unitcode{10006}
\studentnumber{3x999999}
\classification{TG8}
\confidential{不涉密}

\maketitle
\setcounter{page}{0}

\frontmatter
\newpage
\begingroup
\hrule width0bp
\vskip54bp
\centerline{\bf\zihao{-2}本人声明}
\vskip27bp
\zihao{4}我声明，本论文及其研究工作是由本人在导师指导下独立完成的，在完成论文时所利用的一
切资料均已在参考文献中列出。
\vskip63bp
\hfill	\begin{tabular}{cl}
		作者：&张三 \\
		签字：&\vrule width0pt height10bp depth10bp{}\\
		时间：&2010年6月
	\end{tabular}
\endgroup

\include{abstract}

\tableofcontents
\newpage
\mainmatter

\include{preface}

\include{implementation}

\include{summary}

\newpage
\renewcommand{\thesection}{致谢}
\section*{致谢}\addcontentsline{toc}{section}{致谢}

然后, 我要感谢....

感谢~Linus Torvalds，他无私的开放了~Linux~的源代码，为我们提供了课题和饭碗。感谢
~VIM~的作者~Bram Moolenaar(虽然我没有给乌干达的可怜儿童和~Bram~捐款)，他设计的编
辑器是世界上最好的编辑器。感谢 ~\TeX{}~ 的作者 ~D. E. Knuth~ 教授、
~\LaTeXe{} 的作者~Leslie Lamport~以及 ~\LaTeXe{}~ 中无数个宏包的设计者们，他们的设
计组成的这套排版系统使我可以排出精美的论文，另外在紧张的论文撰写同时给我带来了许
多快乐。

最后，感谢~\CTeX~社区的所有朋友们。

\nocite{*}
%\standardtilde
\newpage
\bibliography{bibs.bib}\addcontentsline{toc}{section}{参考文献}

\appendix
%\include{appendixA}
%\include{appendixB}
\clearpage

\end{document}
